/**
 Copyright (C) 2013 Yuyao Liang

 This source code is release under the BSD License.

 This program is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE.  See the license for more details.

 Created on Mar 6, 2014 10:19:00 AM
 */
package com.googlecode.exitrule.ui;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.border.CompoundBorder;
import javax.swing.border.TitledBorder;

/**
 * @author lianyuy
 * 
 */
public class StockInformationPanel extends JPanel {

	private static final long serialVersionUID = 6307660160234152643L;
	private StockInformationTablePanel tablePanel;
	private StockBroughtInformationPanel infoPanel;

	/**
	 * Create the panel.
	 */
	public StockInformationPanel() {
		setLayout(new BorderLayout(4, 4));

		tablePanel = new StockInformationTablePanel();
		add(tablePanel, BorderLayout.CENTER);

		JPanel lowerPanel = new JPanel(new BorderLayout(4, 4));
		lowerPanel.setBorder(new TitledBorder(null, "", TitledBorder.LEADING,
				TitledBorder.TOP, null, null));
		tablePanel.add(lowerPanel, BorderLayout.SOUTH);

		infoPanel = new StockBroughtInformationPanel();
		lowerPanel.add(infoPanel, BorderLayout.CENTER);

	}

}
